var express = require('express');
var router = express.Router();
var request = require('request')

/* GET home page. */
router.get('/', function(req, res, next) {
    res.render('index', { title: 'Express' });
    // res.send('{aaa:"aaa"}')
});

router.get('/test', function(req, res, next) {
    // res.render('index', { title: 'Express' });
    var data = '';

    request('http://localhost:3030', function(err, res1, req1) {
        console.log(req1)
        data = req1
        res.send(data)
    })

});

module.exports = router;